package com.sjd.mall.service.account;

import com.sjd.common.core.domain.AjaxResult;
import com.sjd.mall.domain.SjdAccountAddrDO;
import com.sjd.mall.domain.dto.account.AccountAddressAddRequestDTO;
import com.sjd.mall.domain.dto.account.AccountAddressUpdateRequestDTO;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * @ProjectName: sjd
 * @Package: com.sjd.mall.service.account
 * @ClassName: AccountAddress
 * @Author: genglong
 * @Description: 收货地址接口
 * @Date: 2022/1/12 16:26
 * @Version: 1.0
 */
public interface AccountAddressService {

    /**
     * 新增收货地址
     * @param requestDTO
     * @return
     */
    AjaxResult insertAccountAddress(AccountAddressAddRequestDTO requestDTO);

    /**
     * 修改收货地址
     * @param requestDTO
     * @return
     */
    AjaxResult updateAccountAddress(AccountAddressUpdateRequestDTO requestDTO);

    /**
     * 查询收货地址
     * @return
     */
    List<SjdAccountAddrDO> selectAccountAddress();

    /**
     * 删除地址信息
     * @param id
     * @return
     */
    AjaxResult deleteAccountAddress(Long id);
}
